package com.hefeng.example.domain;


import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @ClassName LoginResult
 * @Description TODO
 * @Author Administrator
 * @Date 2022/9/24 21:27
 * @Version 1.0.0
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class LoginResult {

    private String tokenHead;
    private String userName;
    private String nickName;
    private String token;
    private Long userId;
    private String userType;

    /**
     * 菜单权限码集合 权限码 url才会有权限吗
     */
    @ApiModelProperty(name = "菜单权限码集合", notes = "")
    private List<String> permissionList;
    /**
     * 角色码集合
     */
    @ApiModelProperty(name = "角色码集合", notes = "")
    private List<String> roleList;


    public String getTokenHead() {
        return tokenHead;
    }

    public void setTokenHead(String tokenHead) {
        this.tokenHead = tokenHead;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getUserType() {
        return userType;
    }

    public void setUserType(String userType) {
        this.userType = userType;
    }
}
